extends Card

func init():
	att.atk = 1
	att.maxHp = 2
	att.cry = 1
	lv = 3
	type = TYPE.CREATURE
	camp = "m_hearthstone" #阵营
	name = "鱼人杀手蟹"
	tab = "野兽"
	dec = "战吼：消灭一个鱼人，并获得+2/+2。"
	aiTab = "kill"

func _use(card,cell):
    if card != null:
        sys.scene.newQueueEff("e_dao",card.getPos())
        att.atk += 2
        att.maxHp += 2
        cardDeath(card)
		
func useSelIf(card,cell):
    # 有鱼人标签的卡牌
    if card != null && card.type == TYPE.CREATURE && card.hasTab("鱼人"):
        return true
    # 不触发战吼直接上场
    elif card == null && cell != null:
        print(card,cell)
        return true
    else:
        return false